@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-6 b-r">
                        <#input id="revdate" name="日期" pattern="YYYY-MM-DD" value="${tool.currentDate(0)}" />
                        <#dictSelector  id="type" name ="type" code="CE_type"  label="收支类型"  onchange="RmbCashReceiptsInfoDlg.getSelectDetailsType(this)"  value="2" />
                        <div class="form-group" id="customerdiv" style="display:none;">
                            <label class="col-sm-3 control-label">往来客户</label>
                            <div class="col-sm-9">
                                <select id="customer" name="customer" class="form-control" style="width:248px" >
                                    @for(var customer in Customerinfos ){
                                    <option value="${customer.customercode}">${customer.customername}</option>
                                    @}
                                </select>
                            </div>
                        </div>
                        <#input id="amount" name="金额" value="0.00"/>

                </div>

                <div class="col-sm-6">
                    <#input id="note" name="摘要" />
                    <#dictSelector  id="detailsType" name ="detailsType" code="Details_type"  label="收支归类" value="1" onchange="RmbCashReceiptsInfoDlg.getSelectDetails(this)"   />
                    <div class="form-group">
                        <label class="col-sm-3 control-label">收支明细</label>
                        <div class="col-sm-9">
                            <select id="summary" name="summary" class="form-control" style="width:248px" onchange="RmbCashReceiptsInfoDlg.getChange(this)"  >
                                @for(var details in Details ){
                                <option value="${details.id}" valueType="${details.type}">${details.name}</option>
                                @}
                            </select>
                        </div>
                    </div>



                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="RmbCashReceiptsInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="RmbCashReceiptsInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/rmbCashReceipts/rmbCashReceipts/rmbCashReceipts_info.js"></script>
@}
